const request = require('../libs/request.js');
const homeService = {
  //首页
  getIndex:(data)=>{
    return request({
      url:"/index/main",
      data:data
    });
  },
  // 动态列表
  getDynamicList:(data)=>{
    return request({
      url: "/circle/list",
      data: data
    });
  },
  // 动态详情
  getDynamicDetail: (data) => {
    return request({
      url: "/circle/detail",
      data: data
    });
  },
  // 动态点赞
  checkLikeDynamic: (data) => {
    return request({
      url: "/circle/checkLike",
      data: data
    });
  },
  // 发送动态
  addDynamic: (data) => {
    return request({
      url: "/circle/add",
      data: data,
    });
  },
   // 视频点赞
  checkLikeVideo: (data) => {
    return request({
      url: "/video/checkLike",
      data: data
    });
  },
   // 问答点赞
  checkLikeWenda: (data) => {
    return request({
      url: "/wenda/checkLike",
      data: data
    });
  }
}
module.exports = homeService;